359f730529213f703518364e9f4ce72f2ca2d26a,amigo-lib/src/main/java/me/ele/amigo/AmigoInstrumentation.java,AmigoInstrumentation,execStartActivity,#Context#IBinder#IBinder#Fragment#Intent#number#Bundle#,147

Before Change


                                            Bundle options) {
        try {
            intent = wrapIntent(who, intent);
            Method method = oldInstrumentation.getClass().getDeclaredMethod("execStartActivity",
                    Context.class, IBinder.class, IBinder.class, Fragment.class, Intent.class,
                    int.class, Bundle.class);
            return (ActivityResult) method.invoke(oldInstrumentation, who, contextThread, token,
                    target, intent, requestCode, options);
        } catch (NoSuchMethodException e) {

After Change


                                            Bundle options) {
        try {
            intent = wrapIntent(who, intent);
            if (methodExecStart4 == null) {
                methodExecStart4 = oldInstrumentation.getClass().getDeclaredMethod
                        ("execStartActivity",

                                Context.class, IBinder.class, IBinder.class, Fragment.class,
                                Intent.class,
                                int.class, Bundle.class);
            }
            return (ActivityResult) methodExecStart4.invoke(oldInstrumentation, who,
                    contextThread, token,